//
//  SSDKErrorInfo.m
//  SuperSDK
//
//  Created by wyht－ios－dev on 15/10/7.
//  Copyright © 2015年 WYHT. All rights reserved.
//

#import "SSDKErrorInfo.h"

@implementation SSDKErrorInfo

- (instancetype) init {
    self = [super init];
    
    if (self) {
        self.status = STATUS_FAIL;
    }
    
    return self;
}

- (instancetype) initWithError:(NSString *)error
                       errorNo:(int)errorNo
                      errorMsg:(NSString *)errorMsg {
    self = [super init];
    
    if (self) {
        self.status = STATUS_FAIL;
        [self setError:error
              withCode:errorNo
               withMsg:errorMsg];
    }
    
    return self;
}

@end
